{include file="public/header" /}
<body class="gray-bg">
<div class="wrapper wrapper-content">
    <div class="row">
        <div class="col-sm-12">
            <div class="ibox float-e-margins">
                <div class="ibox-title">
                    <h5>轮播图详情</h5>
                </div>
                <div class="ibox-content layui-form">
                    <div class="layui-row layui-col-space10 layui-form-item ">

                        <div class="layui-form-item layui-col-md-offset1 layui-col-md8">
                            <label class="layui-form-label">名称：</label>
                            <div class="layui-input-block">
                                <input type="text" class="layui-input" value="{$banner.banner_name}" disabled>
                            </div>
                        </div>

                        <div class="layui-form-item layui-col-md-offset1 layui-col-md8">
                            <label class="layui-form-label">缩略图：</label>
                            <div class="layui-input-block">
                                <img src="{$banner.banner_thumb}" class="img-circle" style="height:200px">
                            </div>
                        </div>

                        <div class="layui-form-item layui-col-md-offset1 layui-col-md8">
                            <label class="layui-form-label">状态：</label>
                            <div class="layui-input-block">
                                {if($banner.banner_status == 1)}
                                <input type="text" class="layui-input" value="上架中" disabled>
                                {else /}
                                <input type="text" class="layui-input" value="已下架" disabled>
                                {/if}
                            </div>
                        </div>

                        <div class="layui-form-item layui-col-md-offset1 layui-col-md8">
                            <label class="layui-form-label">排序：</label>
                            <div class="layui-input-block">
                                <input type="text" class="layui-input" value="{$banner.banner_sort}" disabled>
                            </div>
                        </div>

                        <div class="layui-form-item layui-col-md-offset1 layui-col-md8">
                            <label class="layui-form-label">发布时间：</label>
                            <div class="layui-input-block">
                                <input type="text" class="layui-input" value="{$banner.banner_time}" disabled>
                            </div>
                        </div>

                        <div class="layui-form-item layui-col-md-offset1 layui-col-md8">
                            <label class="layui-form-label">类型：</label>
                            <div class="layui-input-block">
                                {if($banner.banner_type == 1)}
                                <input type="text" class="layui-input" value="外链" disabled>
                                {/if}
                                {if($banner.banner_type == 2)}
                                <input type="text" class="layui-input" value="赛事" disabled>
                                {/if}
                                {if($banner.banner_type == 3)}
                                <input type="text" class="layui-input" value="图文" disabled>
                                {/if}
                            </div>
                        </div>

                        {if($banner.banner_type == 1)}
                        <div class="layui-form-item layui-col-md-offset1 layui-col-md8">
                            <label class="layui-form-label">外链：</label>
                            <div class="layui-input-block">
                                <input type="text" class="layui-input" value="{$banner.banner_link}" disabled>
                            </div>
                        </div>
                        {/if}

                        {if($banner.banner_type == 2)}
                        <div class="layui-form-item layui-col-md-offset1 layui-col-md8">
                            <label class="layui-form-label">赛事：</label>
                            <div class="layui-input-block">
                                <input type="text" class="layui-input" value="{$banner.match_title}" disabled>
                            </div>
                        </div>
                        {/if}

                        {if($banner.banner_type == 3)}
                        <div class="layui-form-item layui-col-md-offset1 layui-col-md10">
                            <label class="layui-form-label">图文：</label>
                            <div class="layui-input-block" id="LAY_editor" lay-verify="editor">
                                <p>{$banner.banner_content}</p>
                            </div>
                        </div>
                        {/if}

                        <div class="layui-form-item layui-col-md-offset1 layui-col-md8">
                            <div class="layui-input-block">
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>
{include file="public/footer" /}
<script>
    var editor = wk.wang({elem:'#LAY_editor'});
</script>

</body>
</html>
